<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <form>
        用户名：<input name="username" type="text">
        密码：<input name="password" type="password">
        <span onclick="submit()">登录</span>
    </form>

    <button onclick="test()">测试</button>
    <div id="content" style="margin-top: 20px"></div>
</div>
</body>
</html>

<script type="text/javascript" src="/assets/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/assets/js/all-util.js"></script>
<script type="text/javascript" src="/assets/js/all-init-fn.js"></script>
<script>
    $(function () {


    });

    function submit() {
        var param = $('form').serializeObject();
        ajaxPost('/Login/doLogin.go', param, function (response) {
            console.log(response)
        });
    }

    function test() {
        ajaxGet('/BookInfo/listPage.do', {}, function (response) {
            $('#content').html(JSON.stringify(response));
        });
    }

</script>
